package com.class1;
import org.checkerframework.checker.nullness.compatqual.PolyNullType;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.Point;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Test51job {
    public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver","chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.get("https://www.51job.com");
driver.manage().window().setPosition(new Point(380,0));
driver.manage().window().setSize(new Dimension(1544,944));
driver.findElement(By.id("//button[text()='搜索']")).click();
Thread.sleep(2000);
String value=driver.findElement(By.id("keywordInput")).getAttribute("value");
        System.out.println("输入框的内容是:"+value);
String title=driver.getTitle();
Thread.sleep(2000);
String titleText=driver.findElement(By.xpath("//title")).getText();
String titleinnerText=driver.findElement(By.xpath("//title")).getAttribute("innerText");
        System.out.println(title+"  和   "+titleText+"  和  "+titleinnerText);
    }
}
